FROM python:3.8
WORKDIR ./code
ADD . .
RUN mkdir ~/.pip && \
cd ~/.pip/ && \
echo "[global] \ntrusted‐host = pypi.douban.com \nindex‐url = http://pypi.douban.com/simple" > pip.conf

RUN pip install --upgrade pip

RUN pip install -r requirements.txt

CMD ["python3", "./BaiDuWenKuMainSpider.py"]
